const proxy = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(proxy('/webnuxt-api', {
    "target": "http://localhost",
    changeOrigin: true,
    "ws": true
  }));
  // app.use(proxy('/socket.io', {
  //   "target": "http://localhost",
  //   changeOrigin: true,
  //   "ws": true
  // }));
};